package com.hegaoye.ctrl;

import com.hegaoye.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/account")
public class AccountCtrl {

  @Autowired
  AccountService accountService;

  @GetMapping(value = "/load")
  @ResponseBody
  public String load() {
    String result = accountService.load();
    return result;
  }
}
